﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace fKanban.Model
{
    public class SprintTaskEntity : EntityBase
    {
        public SprintTaskEntity() { }
        public SprintTaskEntity(int id) {
            this.Id = id;
        }
        public int Id { get; set; }
        public int DashboardId { get; set; }
        public int UserStoryId { get; set; }
        public int SprintId { get; set; }
        public int GoalId { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Author { get; set; }
        /// <summary>
        /// 如果作者为空的话,那么返回匿名,表示没有任何人领取
        /// </summary>
        public string AuthorDescription
        {
            get
            {
                if (string.IsNullOrWhiteSpace(this.Author))
                {
                    return "匿名";
                }
                else
                {
                    return this.Author;
                }
            }
        }
        public int Duration { get; set; }
        public int Status { get; set; }
        public int eColor { get; set; }
        public int eDegree { get; set; }
    }
}
